package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.intelligent.k12.polarlight.enums.TradeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 钱包变动 对象
 * @author Wu
 */
@Data
@Builder
@ApiModel(value = "钱包变动 对象")
public class WxUserPurseChangeDTO {

    @ApiModelProperty(value = "微信用户ID,必须传")
    String wxUserId;

    @ApiModelProperty(value = "交易金额,必须传")
    BigDecimal amount;

    @ApiModelProperty(value = "交易类型,必须传")
    TradeTypeEnum tradeType;

    @ApiModelProperty(value = "交易流水号,不传自动生成")
    String tradeNo;

    @ApiModelProperty(value = "交易变动时间，不传则当前时间")
    Date operateTime;

    @ApiModelProperty(value = "课程订单编号")
    String orderNo;

    @ApiModelProperty(value = "微信支付交易订单号，可以不传")
    String transactionId;

    @ApiModelProperty(value = "true:收入，false:支出")
    Boolean income;
}
